//
//  LGHomeTableViewCell.m
//  ligenyun
//
//  Created by apple on 2018/3/23.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "LGCiTangHomeTableViewCell.h"

@interface LGCiTangHomeTableViewCell ()
@property(nonatomic, strong) STButton     *iconButton;
@property(nonatomic, strong) STLabel     *titleLable;
@property(nonatomic, strong) STLabel     *desLable;
@property(nonatomic, strong) STLabel     *peopleLable;
@property(nonatomic, strong) STLabel     *timeLable;
@end
@implementation LGCiTangHomeTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configSubView];
    }
    return self;
}
+ (CGFloat)cellHeight{
    return 90;
}
#pragma mark --SubView
- (void)configSubView{
    self.iconButton = [[STButton alloc] initWithFrame:CGRectMake(15, 10, 60, 60)
                                                title:nil
                                           titleColor:nil
                                            titleFont:0
                                         cornerRadius:30
                                      backgroundColor:nil
                                      backgroundImage:[UIImage imageNamed:@"1"]
                                                image:nil];
    [self addSubview:self.iconButton];
    
    STLabel * titleLable = [[STLabel alloc] initWithFrame:CGRectMake(self.iconButton.right + 10,10, UIScreenWidth - self.iconButton.right, 20)
                                                     text:@"赵氏祠堂"
                                                textColor:FirstTextColor
                                                     font:15
                                              isSizetoFit:NO
                                            textAlignment:NSTextAlignmentLeft];
    self.titleLable = titleLable;
    [self addSubview:self.titleLable];
    
    STLabel * desLable = [[STLabel alloc] initWithFrame:CGRectMake(self.iconButton.right+ 10,self.titleLable.bottom, UIScreenWidth - self.iconButton.right, 20)
                                                   text:@"宗祠号:0223323    宗谱:赵氏"
                                              textColor:SecendTextColor
                                                   font:12
                                            isSizetoFit:NO
                                          textAlignment:NSTextAlignmentLeft];
    self.desLable = desLable;
    [self addSubview:self.desLable];
    
    STLabel * peopleLable = [[STLabel alloc] initWithFrame:CGRectMake(self.iconButton.right+10,self.desLable.bottom, UIScreenWidth - self.iconButton.right, 20)
                                                    text:@"未收录族人:1  创建人:赵高"
                                               textColor:SecendTextColor
                                                    font:12
                                             isSizetoFit:NO
                                           textAlignment:NSTextAlignmentLeft];
    self.peopleLable = peopleLable;
    [self addSubview:self.peopleLable];
    
    STLabel * timeLable = [[STLabel alloc] initWithFrame:CGRectMake(self.iconButton.right+10,self.peopleLable.bottom, UIScreenWidth - self.iconButton.right, 20)
                                                      text:@"创建时间:  2018年03月26日10:22:55"
                                                 textColor:SecendTextColor
                                                      font:12
                                               isSizetoFit:NO
                                             textAlignment:NSTextAlignmentLeft];
    self.timeLable = timeLable;
    [self addSubview:self.timeLable];
}

@end

